package org.xp.judgeplatform.pojo.dto.ChatDTO;

import com.fasterxml.jackson.annotation.JsonIgnoreProperties;
import jakarta.validation.constraints.NotBlank;
import jakarta.validation.constraints.NotNull;
import jakarta.validation.constraints.Size;
import lombok.Data;

@Data
@JsonIgnoreProperties(ignoreUnknown = true)
public class ChatSendMessageDTO {

    @NotNull(message = "用户ID不能为空")
    private Integer userId;

    @NotBlank(message = "消息内容不能为空")
    @Size(max = 10000, message = "消息内容长度不能超过10000字符")
    private String content;

    private String sessionId;

    @Size(max = 200, message = "会话标题长度不能超过200字符")
    private String title;

    private String messageType = "text";
}